home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: MegaDisc / MegaDisc 36 (1993-11)(MegaDisc Digital Publishing)(AU)(Disk 1 of 2)[WB].zip / MegaDisc 36 (1993-11)(MegaDisc Digital Publishing)(AU)(Disk 1 of 2)[WB].adf / Tutes_&_CLI / Default_Icons / Default_Icons
Text File  |  1993-10-22  |  6KB  |  142 lines

  1.  
  2.  
  3.                          User Definable Default Icons
  4.                          ============================
  5.  
  6.                               Anthony Robertson
  7.  
  8.  
  9.        Please Note:  As far as I know the following information works
  10.     with Workbench 2.1 and later.  It may apply from WB2.0 onwards but
  11.     I have no access to earler versions of the 2.x Systems.
  12.  
  13.  
  14.     36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 
  15.  
  16.  
  17.        One of the real bonuses of Workbench 2 (and onwards) is the
  18.     feature of the operating system to let you view any file from the
  19.     Workbench with the show-all menu option (except disk.info).
  20.        The WB2.x ROMs store an icon image of each type of icon we use
  21.     with files so that when the Amiga shows us something that has no
  22.     icon of it's own.
  23.        The only fault I found with this was that after a while these
  24.     stored icons get pretty boring since you can't change the ROMs
  25.     icon images.
  26.  
  27.  
  28.        Luckily the Amiga operating System (from at least 2.1 onwards)
  29.     looks for a new default icon in the System environment directory
  30.     (copied onto the Ram Disk at boot-up).
  31.  
  32.        I never knew of this System call until a few days ago when I
  33.     received a copy of SnoopDOS 1.5 from Megadisc.  As I started to
  34.     use it I came across the Amiga looking for a file called
  35.     def_drawer.info whenever I used the show-all option and there were
  36.     directories without icons.
  37.        The location my Amiga was looking in is RAM:Env/Sys with a
  38.     Virtual name called ENV:Sys.  I saw that the computers search was
  39.     failing since the file had never existed on my computer before.
  40.        Looking into my WB2.1 Workbench and AmigaDOS manuals I found no
  41.     reference to a file called def_drawer.info.  There was no mention
  42.     of new default icons either when I looked since that was what I
  43.     guessed it was.
  44.  
  45.        So using a little inventiveness, I copied a personal drawer
  46.     icon I use (not the System default one) to the Ram Disk directory
  47.     called RAM:Env/Sys as def_drawer.info and then chose the show-all
  48.     option on the Ram Disk.
  49.        The effect was instant - each and every drawer without an icon
  50.     was now being represented by my own icon (instead of the normal
  51.     one).
  52.        Fantastic!  From now on I can have my own personal drawer icons
  53.     used instead of the boring and plain ROM default ones.  Another
  54.     bonus is that if I get tired of these drawer icons I can change
  55.     them all as fast as any real drawer icon.
  56.  
  57.        Another added feature that I only realised later was that each
  58.     new drawer created from the menu (or Hotkeys) uses my icon as the
  59.     template and not the old System one!
  60.  
  61.                           ------------------------------
  62.  
  63.        Will it Work Elsewhere?
  64.        -----------------------
  65.  
  66.        Will it work with other icons as well?  I thought that it was
  67.     pretty obvious considering how the default drawer icon was named so
  68.     I tried it out on three other types of icons.  They were disk,
  69.     tool, and Project icons.
  70.        Choosing unconventional icons of each type, I named them as
  71.     follows:
  72.  
  73.        def_disk.info
  74.  
  75.        def_tool.info
  76.  
  77.        def_project.info
  78.  
  79.        Each and every one of these new default icons work perfectly so
  80.     long as the names are correct and the icon types are correct too -
  81.     ie.  default tools are tools, default disks are disks, etc.
  82.  
  83.  
  84.        Keep It Simple
  85.        --------------
  86.  
  87.        To keep your work simple (that's the idea of default icons) you
  88.     should position and resize drawer icons, then Snapshot them (from
  89.     the Windows menu) before copying it to the RAM:Env/Sys directory.
  90.     If you don't do this you will keep the old drawer preferences when
  91.     you save it for the default drawer.  That would mean that if you
  92.     have a drawer that is overly large or small to start with, will
  93.     pass on these anoyances to every newly created draw and any drawer
  94.     shown with the show-all option.
  95.        Also remember that the same applies to the default disk icons
  96.     too.  For those that don't know, disk icons are stored normally in
  97.     the root directory of each disk as disk.info.
  98.  
  99.  
  100.        Where to use these Icons
  101.        ------------------------
  102.  
  103.        If you're making up a new disk like Megadisc where you use a
  104.     lot of drawers that are similar, it would be worthwhile to put
  105.     your temporary icon into the RAM:Env/Sys directory.  You could
  106.     also use this idea if your making a series of disks with the same
  107.     icon, you could just snapshot each one as you insert the disk and
  108.     it would be permanent for that disk on every computer that it's
  109.     inserted into.
  110.  
  111.  
  112.        How to make it Permanent
  113.        ------------------------
  114.  
  115.        Lets make it permanent to save us a lot of time if we want
  116.     these new default icons all the time.  What you do after you're
  117.     pleased with your icons and want them permanent, all you need to
  118.     do is copy each of your new default icon files FROM the Ram:Env/Sys
  119.     directory TO the boot-disk directory called Sys:Prefs/Env-Archive
  120.     (where Sys:  is your boot-disk).
  121.        Once these default icons are saved to the directory mentioned
  122.     above on your Boot-disk, your Amiga will copy these files to the
  123.     Ram Disk each time you boot (unless Startup-Sequence has has been
  124.     modified to remove this copying).
  125.  
  126.  
  127.        The End
  128.        -------
  129.  
  130.        That's all I have on this subject at the moment.  Any comments
  131.     are welcome along with info if changing default icon changing is
  132.     possible before Workbench 2.1
  133.  
  134.  
  135.        ~ August 1993
  136.  
  137.  
  138.  
  139.     36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 
  140.  
  141.  
  142.